﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
namespace WCF
{
    // NOTE: If you change the interface name "ILogin" here, you must also update the reference to "ILogin" in App.config.
    [ServiceContract]
    public interface ILogin
    {
        [OperationContract]
        void DoWork();

        [OperationContract]
        string GetTenSinhVien(string ms_hssv);

        [OperationContract]
        bool KiemTraThuBaiThi(string idThi);


        [OperationContract]
        bool UserExit(string MaNguoiDung, string user);

        [OperationContract]
        int GetIDTruyCap(string user);

        [OperationContract]
        bool KiemTraChoPhepThi(string idThi);

        [OperationContract]
        void TaoDataKhiChonMon(string MaNguoiDung, string Ms_hssvthi, string mon, int socauhoi, string lanthi);


        [OperationContract]
        Boolean CheckLogin(string user, string pass);

        [OperationContract]
        string GetUser();

        [OperationContract]
        string GetMaNguoiDung();

        [OperationContract]
        string GetHost();

        [OperationContract]
        DataTable LoginCauHinhBangDiem(string MaNguoiDung);

        ////////////////////////////////CHON MON
        [OperationContract]
        DataTable MonThi(string Manguoidung);

        [OperationContract]
        DataTable GhiChuTruocVaSauKhi(string MaNguoiDung,string ms_Mondaotao);

        [OperationContract]
        DataTable ThongTinSauThi(string MaNguoiDung,string MS_hssvthi, string lop, string Manguoidung, string MS_Mondaotao, string lanthi);

        [OperationContract]
        DataTable LayThongTinCauHoi(string MaNguoiDung, string m_Lanthi, string ms_hssvthi, string ms_lop, int thutu);

        [OperationContract]
        void CapNhatCauHoiDaChon(string MaNguoiDung,string traloi, string m_ms_hssvthi, int m_Tab, string m_Lanthi);

        [OperationContract]
        void CapNhatcauHoiNhungChuaChonLuu(string MaNguoiDung,string m_ms_hssvthi, int m_Tab, string m_Lanthi);

        [OperationContract]
        DataTable KiemTraDiem(string MaNguoiDung, string m_Lanthi, string m_ms_hssvthi);

        [OperationContract]
        void CapNhatThongTinThi(string MaNguoiDung, int Diemthi, int ketquathi, string m_ms_hssvthi, string m_ms_Mondaotao, string m_Lanthi, string ms_loaithi);
    }  
}
